package org.prism.thread;

public class Thread02Test {
    public static void main(String[] args) {
        new Thread(){
            @Override
            public void run() {
                for (int i = 0; i < 20; i++) {
                    if (i % 2 == 0) {
                        System.out.println("偶数 = " + i);
                    }
                }
            }
        }.start();
        for (int i = 0; i < 20; i++) {
            if (i % 2 != 0) {
                System.out.println("奇数 = " + i);
            }
        }
    }
}
